<template>
  <div>
    <Topnav />
    <div class="banner">
      <h1>Cha-UI</h1>
      <h2>一个基于Vue的 UI 组件库</h2>
      <p class="actions">
        <a href="https://gitee.com/chen-yijia-c/cha-ui"
           target="_blank">码云</a>
        <router-link to="/doc">开始</router-link>
      </p>
    </div>
  </div>
</template>

<script lang='ts'>
import Topnav from "../components/Topnav.vue";

export default {
  name: "Home",
  components: {
    Topnav,
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.banner {
  padding: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: lightgreen;

  h2 {
    text-align: center;
  }

  > .actions {
    padding: 8px 0;

    a {
      margin: 0 8px;
      background-color: #fff;
      display: inline-block;
      $h: 28px;
      height: $h;
      line-height: $h;
      border-radius: $h/2;
      padding: 0 8px;
    }
  }
}
</style>
